package com.ruoyi.user.model.pojo.request.app;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;

@Getter
@Setter
@ApiModel(description = "APP-用户实名认证")
public class AppUserAuthRequest {
    @Schema(name = "证件类型")
    @NotBlank(message = "证件类型不能为空")
    private String certificateType;

    @Schema(name = "姓名")
    @NotBlank(message = "姓名不能为空")
    @Length(max = 12, message = "姓名最大不超过12个字符")
    private String name;

    @Schema(name = "身份证号码")
    @NotBlank(message = "身份证号码不能为空")
    @Length(max = 20, message = "身份证号码最大不超过20个字符")
    private String cardNumber;

}
